package com.ht.temp.controller;


import com.ht.temp.entity.TemperatureLimit;
import com.ht.temp.service.ITemperatureLimitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author mayke_zhou
 * @since 2018-12-26
 */
@RestController
@RequestMapping("/temperatureController")
public class TemperatureLimitController {

    @Autowired
    private ITemperatureLimitService temperatureLimitService;

    @RequestMapping(value = "/getTemper",method = RequestMethod.GET)
    public TemperatureLimit getTemper(){
        return temperatureLimitService.getTemper();
    }

    @RequestMapping(value = "/editTemper",method = RequestMethod.POST)
    public Integer editemper(TemperatureLimit temperatureLimit){
        return temperatureLimitService.editTemper(temperatureLimit);
    }
}
